package com.sdjzu.wanfuying.androiddesign.mvvm.coolapk;

import com.sdjzu.wanfuying.androiddesign.BR;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

public class Item extends BaseObservable {
    private int type;

    private String content;

    public Item(int type, String content) {
        this.type = type;
        this.content = content;
    }

    @Bindable
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
        notifyPropertyChanged(BR.type);
    }

    @Bindable
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        notifyPropertyChanged(BR.content);
    }
}
